package com.llkj.common.di.module;

import android.app.Application;

import com.google.gson.Gson;

import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;

/**
 * author: zhu.px
 * e-mail: 1271901673@qq.com
 * time  : 2018/5/22
 * desc  :
 */
@Module
public  class AppModule {

    private Application mApplication;

    public AppModule(Application mApplication) {
        this.mApplication = mApplication;
    }

    @Singleton
    @Provides
    public Application provideApplication() {
        return mApplication;
    }

    @Singleton
    @Provides
    public Gson provideGson() {
        return new Gson();
    }

}
